package demo.gateway.config;

import demo.gateway.metric.NettyMetricsRecorder;
import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MetricsConfiguration {


    @Bean
    public NettyMetricsRecorder nettyMetricsRecorder(MeterRegistry meterRegistry) {
        return new NettyMetricsRecorder(meterRegistry);
    }


}


